﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="Notice.aspx.cs" Inherits="BuXiaChu.OrderDishes.Web.CallCenter.Notice" %>

<%@ Register Src="~/Modules/NoticeList.ascx" TagName="List" TagPrefix="Notice" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <title></title>
    <link media="screen, projection" rel="stylesheet" type="text/css" href="/css/Blueprint/screen.css" />
    <link media="screen, projection" rel="stylesheet" type="text/css" href="/css/main.css" />

    <script type="text/javascript" src="js/Extend.js"></script>

    <script type="text/javascript" src="js/Common.js"></script>

    <script type="text/javascript" src="js/jquery-vsdoc.js"></script>

</head>
<body>
    <form id="form1" runat="server">
    <div class="container">
        <div class="span-13 last">
            <div class="editor">
                <div class="label">
                    内容：
                </div>
                <div class="field">
                    <textarea id="txt_Content" runat="server" style="width: 300px; height: 80px"></textarea>
                </div>
                <div class="label">
                    级别：
                </div>
                <div class="field">
                    <select id="sel_Level" runat="server">
                    </select>
                </div>
                <div class="label">
                    &nbsp;
                </div>
                <div class="field">
                    <input type="button" id="btn_Send" value="发布" />
                </div>
            </div>
        </div>
        <div class="span-13 last">
            <Notice:List runat="server" />
        </div>
    </div>
    </form>
</body>
</html>

<script type="text/javascript">
    $(jDoc("btn_Send")).click(function() {
        if (jDoc("txt_Content").value.trim() == "") {
            alert("请输入发布内容");
            return;
        }
        jDoc("form1").submit();
    });
</script>

<script type="text/javascript">

(function(){
    switch(<%=saveStatus %>){
        case 1:alert("操作成功");break;
        case 0:alert("操作失败");break;
        default:break;
    }
})();
</script>

